package cn.wh.context.event;

/**
 * @Description 测试关闭事件
 * @Version 1.0.0
 * @Date 2022/11/16 17:43
 * @Created wh
 */

public class TestContextClosedEvent extends ApplicationContextEvent {


    private String name;

    private String message;

    private String iphone;

    /**
     * Constructs a prototypical Event.
     *
     * @param source the object on which the Event initially occurred
     * @throws IllegalArgumentException if source is null
     */
    public TestContextClosedEvent(Object source,String name,String message,String iphone) {
        super(source);
        this.name=name;
        this.iphone=iphone;
        this.message=message;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getIphone() {
        return iphone;
    }

    public void setIphone(String iphone) {
        this.iphone = iphone;
    }

    @Override
    public String toString() {
        return "TestContextClosedEvent{" +
                "name='" + name + '\'' +
                ", message='" + message + '\'' +
                ", iphone='" + iphone + '\'' +
                '}';
    }
}
